/*
 *定义数组
 * */
public class Demo
{
	public static void main(String[] args)
	{
		int[] arr = new int[3];
		int[] arr1 = new int[]{1,2,3};
		int[] arr2 = {1,2,3};
		
		int i = getMax(arr1);
		System.out.println(i);
		System.out.println(arr.length);
	}
	
	/* get max */
	public static int getMax(int[] arr)
	{
		int max = arr[0];
		for(int i=1; i<arr.length; i++)
		{
			max = (arr[i]>max)?(arr[i]):(max);
		}

		return max;
	}
}
